home *** CD-ROM | disk | FTP | other *** search
- Path: unix.sri.com!usenet
- From: mklenk@updike.sri.com (Mark Klenk)
- Newsgroups: comp.lang.c
- Subject: Re: Watch out! C "gotcha!"
- Date: 14 Feb 1996 22:33:22 GMT
- Organization: SRI International
- Message-ID: <4ftnvi$6mm@unix.sri.com>
- References: <4fthhh$7th@blackice.winternet.com>
- Reply-To: mklenk@updike.sri.com
- NNTP-Posting-Host: 204.75.161.40
-
- Michael Schwarz wrote:
- >
- >Many of you may already know this, but even after ten years of coding
- >in C, this took my by surprise at first. A co-worker and I were looking
- >at some library C code where I work and we noticed that the "default"
- >clause of one of the switches was misspelled as "defalt."
-
- I tried compiling your sample program.
- When I compile with 'gcc -Wall', I get the following warning:
-
- foo.c: In function `main':
- foo.c:15: warning: label `defalt' defined but not used
-
-
- ---
-
- mklenk@coronacorp.com (Mark Klenk)
-
-
-
-